<?php
require_once 'Test.php';
require_once '../src/IniSet.php';
require_once '../src/Debug.php';

use PhpTool\IniSet;

//error_reporting(E_ALL & ~E_NOTICE);
//error_reporting(E_ALL);
//ini_set('display_errors', '1');
//ini_set('display_startup_errors',0);
//ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

IniSet::showErrors();
//IniSet::hideErrors();
//IniSet::errorLog('/home/huxiaolong/logs/php-error.log');
//IniSet::errorLog('syslog');
echo IniSet::get('open_basedir');
echo '<br>';
echo IniSet::get('error_reporting');

//(new Test())->say();
//(new Test())->say();
//(new Test())->say();

(Test::getInstance())->say();
(Test::getInstance())->say();
(Test::getInstance())->say();